package com.zs.infrastructure.util.invoker.tushare.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.zs.infrastructure.util.constant.TuShareConstants;
import com.zs.infrastructure.util.invoker.tushare.TuShareInvokerRequest;
import lombok.Data;

import java.util.ArrayList;

/**
 * @author tushare新股IPO信息
 * @date 2022/9/12 0012 下午 4:59
 * @desc
 **/
@Data
public class TuShareStockIpoRequest extends TuShareInvokerRequest {

    public TuShareStockIpoRequest() {
        super.requestPath = TuShareConstants.StockData.NEW_SHARE;
        super.fields =  new ArrayList<String>(){{add("ts_code");add("sub_code");add("name");add("ipo_date");add("issue_date");
            add("amount");add("market_amount");add("price");add("pe");add("limit_amount");add("funds");add("ballot");}};
    }

    /** 上网发行开始日期 */
    @JsonProperty("startTime")
    private String start_date;
    /** 上网发行结束日期 */
    @JsonProperty("endTime")
    private String end_date;
}
